<template>
  <el-form :model="form">
    <el-form-item v-for="col in columns" :key="col.prop" :label="col.label">
      <el-input v-model="form[col.prop]" />
    </el-form-item>
  </el-form>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const form = ref({})
const columns = [
<#list fields as field>
  { prop: '${field.name}', label: '${field.comment}' },
</#list>
]
</script> 